﻿<%@ Page Language="C#" MasterPageFile="~/default.master" AutoEventWireup="true"
    CodeFile="News.aspx.cs" Inherits="NewsPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server">
    <div id="news-detail">
        <h3 id="hTitle" runat="server">
            </h3>
        <div id="dContent" runat="server">
        </div>
    </div>
    <div>
    <br />
        <asp:GridView ID="gvNews" runat="server" AutoGenerateColumns="False" Width="100%" AllowPaging="true" PageSize="10">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <div style="margin:5px;">
                            <%= Resources.Language.News %>
                        </div>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <div style="margin: 5px">
                            <div style="font-size: larger;">
                                <a href='<%#Eval("NewsID")+","+Resources.Language.UrlNews.ToLower()+".aspx" %>'>
                                    <%#Eval("Title") %>
                                </a>
                            </div>
                            <div style="font-size: smaller;">
                        <%#Eval("NewsDate") %>
                            </div>
                            <div>
                            <%#Eval("Description") %>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        
        </asp:GridView>
    </div>
</asp:Content>
